package com.win.javai18n;

import java.util.Locale;
import java.util.ResourceBundle;

public class Demo1 {

    public static void main(String[] args) {
        ResourceBundle bundle1 = ResourceBundle.getBundle("message", new Locale("en", "GB"));
        String testen = bundle1.getString("test");
        System.out.println(testen);
        ResourceBundle bundle2 = ResourceBundle.getBundle("message", new Locale("zh", "CH"));
        String testzh = bundle2.getString("test");
        System.out.println(testzh);
    }
}